// components/rankingItem/rankingItem.js
Component({
  properties: {
    rankingItem: {
      type: Object,
      value: {}
    },
    rankingName: {
      type: String,
      value: ""
    }
  },
  methods: {
    rankingClick() {
      wx.navigateTo({
        url: `/pages/mainDetail/mainDetail?type=ranking&&key=${this.properties.rankingName}`,
      })
    }
  }
})